<demo>
一句话打开
<p>openDialog({options})</p>
</demo>
<template>
  <HButton @click="showDialog">一句话打开</HButton>
</template>

<script lang="ts">
import { HButton, openDialog } from '../../../lib/index'

export default {
  components: {
    HButton,
  },
  setup() {
    const showDialog = () => {
      openDialog({
        title: '标题1',
        content: 'haha Dialog',
        ok() {
          console.log('ok')
        },
        cancel() {
          console.log('cancel')
        },
      })
    }

    return { showDialog }
  },
}
</script>
